package com.chuantou.yuba.api.to;

import com.google.gson.annotations.SerializedName;

import android.os.Parcel;
import android.os.Parcelable;

public class ImageTO implements Parcelable {
	@SerializedName("id")
	private long id;
	@SerializedName("img")
	private String url;

	public ImageTO() {
	}

	public ImageTO(Parcel source) {
		this.id = source.readLong();
		this.url = source.readString();
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeLong(id);
		dest.writeString(url);
	}

	public static final Creator<ImageTO> CREATOR = new Creator<ImageTO>() {

		@Override
		public ImageTO[] newArray(int size) {
			return new ImageTO[size];
		}

		@Override
		public ImageTO createFromParcel(Parcel source) {
			return new ImageTO(source);
		}
	};

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

}
